package com.jxtti.dao;

import java.util.List;
import java.util.Map;

import com.jxtti.entity.SubjectTopic;
/**
 * 
 * <br>
 * <b>功能：</b>SubjectTopicDao<br>
 * <b>作者：lwb</b><br>
 * <b>日期：</b> Nov 26, 2015 <br>
 * <b>版权所有：<b>版权所有(C) 2015，<br>
 */
public interface SubjectTopicDao<T>  {
	
	
	/**
	 * 
	 * <br>
	 * <b>功能：</b>查询数据 <br>
	 */
	public List<SubjectTopic> queryByList(Map<String, Object> data);
	
	/**
	 * 根据权限获取专题
	 * @param data
	 * @return
	 */
	public List<SubjectTopic>  queryByAuth(Map<String, Object> data);
	
	public List<SubjectTopic> queryPublishSubjectTopic(Map<String, Object> data);
	
	/**
	 * 
	 * <br>
	 * <b>功能：</b>ID查询<br>
	 */
	public SubjectTopic querySubjectTopicById(SubjectTopic  subjectTopic);
	
	
	/**
	 * 
	 * <br>
	 * <b>功能：</b>添加数据<br>
	 */
	public int add(SubjectTopic entity);
	
	
	
	/**
	 * 
	 * <br>
	 * <b>功能：</b>修改数据<br>
	 */
	public int update(SubjectTopic entity);
	
	
		/**
	 * 
	 * <br>
	 * <b>功能：</b>删除数据<br>
	 */
	public int delete(SubjectTopic entity);
	
	
	/**
	 * 
	 * <br>
	 * <b>功能：</b>查询总记录数<br>
	 */
	public int queryByCount(SubjectTopic entity);
	
	
	/**
	 * 文件查找主题.
	 * @param data
	 * @return
	 */
	public SubjectTopic queryWithSubjectTopicByMsg(Map<String, Object> data);
	
	/**
	 * 
	 * @param data
	 * @return
	 */
	public SubjectTopic  queryWithSubjectTopicByMenuId(Map<String, Object> data);
}
